layui.define(['layer', 'form','element','carousel','util'], function(exports) {
    let $ = layui.jquery,
        layer = layui.layer,
        layelement = layui.element,
        laycarousel = layui.carousel,
        layutil = layui.util,
        layform = layui.form;
    let see = {
        navlay:function (o) {
            let d = $(o).data();
            if($(d.cid).hasClass('open')){
                $(d.cid).removeClass("open");
            }else{
                $(d.cid).addClass("open");
            }
        },
    };
    // 轮播图
    laycarousel.render({
        elem: '#indexbg',
        width: '100%',
        height: '100%'
    });
    laycarousel.render({
        elem: '#indexanli',
        width: '100%',
        height: '100%',
        autoplay: false,
    });
    laycarousel.render({
        elem: '#indexanlims',
        width: '100%',
        height: '100%',
        autoplay: false,
    });
    $('body').on('click','.cx-click',function () {
        let a = $(this),
            b = a.data('type');
        see[b] ? see[b].call(this, a) : ""
    });

    exports('app', {});
});